	<div class="navbar navbar-fixed-top">
		<div class="navbar-inner">
			<div class="container">
				{% url movies.views.home as home_url %}
				<a class="brand" href="{{home_url}}">Pref</a>
				{% if request.session.auth_profile_username or request.session.auth_access %}
					<div class="btn-group pull-right">
						{% if request.session.auth_profile_username %}
							{% url movies.views.view_profile username=request.session.auth_profile_username as profile_url %}
							<a class="btn" href="{{profile_url}}">
								<i class="icon-user"></i> {{request.session.auth_profile_username}}
							</a>
						{% else %}
							{% url movies.views.login as login_url %}
							<a class="btn" href="{{login_url}}">
								<i class="icon-user"></i> Sign In
							</a>
						{% endif %}
						<button class="btn dropdown-toggle" data-toggle="dropdown">
							<span class="caret"></span>
						</button>
						<ul class="dropdown-menu">
							{% if request.session.auth_profile_username %}
								{% url movies.views.view_profile username=request.session.auth_profile_username as profile_url %}
								<li><a href="{{profile_url}}">Profile</a></li>
								<li><a href="{{profile_url}}?edit=1">Settings</a></li>
								<li class="divider"></li>
								{% url movies.views.logout as logout_url %}
								<li><a href="{{logout_url}}">Sign Out</a></li>
							{% else %}
								{% url movies.views.login as login_url %}
								<li><a href="{{login_url}}">Sign In</a></li>
								<li class="divider"></li>
								{% url movies.views.register as register_url %}
								<li><a href="{{register_url}}">Register</a></li>
						</ul>
						{% endif %}
					</div>
				{% endif %}
				{% if request.session.admin %}
					<ul class="nav pull-left">
						{% url movies.views.view_profiles as profiles_url %}
						<li><a href="{{profiles_url}}">Profiles</a></li>
						{% url movies.views.view_movies as movies_url %}
						<li><a href="{{movies_url}}">Movies</a></li>
						{% url movies.views.view_people as people_url %}
						<li><a href="{{people_url}}">People</a></li>
						{% url movies.views.view_genres as genres_url %}
						<li><a href="{{genres_url}}">Genres</a></li>
					</ul>
				{% elif request.session.auth_profile_username %}
					<ul class="nav pull-left">
						{% url movies.views.discovery as discovery_url %}
						<li><a href="{{discovery_url}}">Find Movies</a></li>
						<li><a href="{{profile_url}}?movies=1">My Movies</a></li>
					</ul>
				{% endif %}
				{% if request.session.auth_profile_id %}
					{% url movies.views.search as search_url %}
					<form class="navbar-search pull-left" action="{{search_url}}" method="get">
						{% if term %}
							<input type="text" class="search-query span4" autocomplete="off" data-provide="typeahead" data-items="4" data-source='["{{header.search_list|join:'","'}}"]' name="t" id="t" value="{{term}}" />
						{% else %}
							<input type="text" class="search-query span4" autocomplete="off" data-provide="typeahead" data-items="4" data-source='["{{header.search_list|join:'","'}}"]' name="t" id="t" placeholder="Search" />
						{% endif %}
					</form>
				{% endif %}
			</div>
		</div>
	</div>